/**
 */
package BlipLanguage.impl;

import BlipLanguage.BlipApplication;
import BlipLanguage.BlipLanguagePackage;
import BlipLanguage.BlipModel;
import BlipLanguage.BlipModelAttribute;
import BlipLanguage.IosTransformer;

import MocaTree.Attribute;
import MocaTree.File;
import MocaTree.Folder;
import MocaTree.MocaTreeFactory;

import MocaTree.Node;
import de.upb.tools.sdm.*;

import java.lang.reflect.InvocationTargetException;

import java.util.*;
import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.EObjectImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Ios Transformer</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * </p>
 *
 * @generated
 */
public class IosTransformerImpl extends EObjectImpl implements IosTransformer {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IosTransformerImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return BlipLanguagePackage.Literals.IOS_TRANSFORMER;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Folder transformApplication(BlipApplication application) {
		boolean fujaba__Success = false;
		Folder folder = null;

		// story node 'initFolder'
		try {
			fujaba__Success = false;

			// create object folder
			folder = MocaTreeFactory.eINSTANCE.createFolder();

			// assign attribute folder
			folder.setName("ios");
			fujaba__Success = true;
		} catch (JavaSDMException fujaba__InternalException) {
			fujaba__Success = false;
		}

		return folder;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eInvoke(int operationID, EList<?> arguments)
			throws InvocationTargetException {
		switch (operationID) {
		case BlipLanguagePackage.IOS_TRANSFORMER___TRANSFORM_APPLICATION__BLIPAPPLICATION:
			return transformApplication((BlipApplication) arguments.get(0));
		}
		return super.eInvoke(operationID, arguments);
	}

} //IosTransformerImpl
